/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.cms.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.Office;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 报修表生成Entity
 * @author 开发者
 * @version 2016-06-18
 */
public class BusinessRepairs extends DataEntity<BusinessRepairs> {
	
	private static final long serialVersionUID = 1L;
//	private Category category;		// 分类编号
	private Office office;		// 小区编号
	private String name;		// 报修人姓名
	private String trouble;		// 问题描述
	private String phone;		// 电话
	private String mobile;		// 手机
	private String address;		// 详细地址
	
	public BusinessRepairs() {
		super();
	}

	public BusinessRepairs(String id){
		super(id);
	}
//
//	@Length(min=1, max=64, message="分类编号长度必须介于 1 和 64 之间")
//	public Category getCategory() {
//		return category;
//	}
//
//	public void setCategory(Category category) {
//		this.category = category;
//	}
	
	@NotNull(message="小区编号不能为空")
	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
	@Length(min=0, max=255, message="报修人姓名长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=9990, message="问题描述长度必须介于 1 和 9990 之间")
	public String getTrouble() {
		return trouble;
	}

	public void setTrouble(String trouble) {
		this.trouble = trouble;
	}
	
	@Length(min=0, max=255, message="电话长度必须介于 0 和 255 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=255, message="手机长度必须介于 0 和 255 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=0, max=255, message="详细地址长度必须介于 0 和 255 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
}